//
//  XMGRecommendUserwCell.m
//  百思不得姐
//
//  Created by 杨庆 on 2017/1/2.
//  Copyright © 2017年 杨庆. All rights reserved.
//

#import "XMGRecommendUserwCell.h"
#import "XMGRecommendUser.h"
#import <SDWebImage/UIImageView+WebCache.h>
@interface XMGRecommendUserwCell()
@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;
@property (weak, nonatomic) IBOutlet UILabel *screenNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *fansCountlabel;

@end

@implementation XMGRecommendUserwCell

- (void)awakeFromNib {
    [super awakeFromNib];
	
	
}



-(void)setUser:(XMGRecommendUser *)user{
	_user=user;
	self.screenNameLabel.text=user.screen_name;
	self.fansCountlabel.text=[NSString stringWithFormat:@"%zd 人关注",user.fans_count];
	[self.headerImageView sd_setImageWithURL:[NSURL URLWithString:user.header] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"] ];
}






- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
